package FactoryMethodPattern.Main;

import FactoryMethodPattern.framework.Factory;
import FactoryMethodPattern.framework.Product;
import FactoryMethodPattern.idcard.IdCardFactory;

public class Main {
    public static void main(String[] args) {
        String[] people = {"李明辰","哈哈","汪汪"};
        for (String name:people
             ) {
            Factory f = new IdCardFactory();
            Product p = f.create(name);
            p.display();
        }
    }
}
